﻿.btn-toggle {
    position: relative;
    overflow: hidden;
    border: 1px solid #c0c4cc;
    min-width: 70px;
    min-height: var(--bb-height);
}

    .btn-toggle.off .toggle-group {
        left: -100%;
    }

    .btn-toggle .btn-default, .btn-toggle.btn-default {
        background-color: #e0e0e0;
        border-color: #ccc;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);
    }

        .btn-toggle .btn-default:hover {
            color: #333;
            background-color: #d4d4d4;
        }

    .btn-toggle .toggle-group {
        position: absolute;
        width: 200%;
        top: 0;
        bottom: 0;
        left: 0;
        -webkit-transition: left 0.35s;
        -moz-user-select: none;
        -webkit-user-select: none;
        transition: left 0.35s;
    }

        .btn-toggle .toggle-group label {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .btn-toggle .toggle-group label, .btn-toggle .toggle-group span {
            cursor: pointer;
        }

        .btn-toggle .toggle-group .toggle-on.bg-dark {
            color: #e4e7ed;
        }

    .btn-toggle .btn-handle {
        position: relative;
        margin: 0 auto;
        padding-top: 0px;
        padding-bottom: 0px;
        height: 100%;
        width: 0px;
        border-width: 0 1px;
        background-image: linear-gradient(to bottom, #fff 0%, #e0e0e0 100%);
        border-color: #ccc;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);
    }

    .btn-toggle .toggle-on {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 50%;
        margin: 0;
        border: 0;
        border-radius: 0;
    }

        .btn-toggle .toggle-on.btn {
            padding-right: 24px;
        }

        .btn-toggle .toggle-on.btn-lg {
            padding-right: 31px;
        }

    .btn-toggle.off .toggle-off {
        color: #333;
    }

    .btn-toggle .toggle-off {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        right: 0;
        margin: 0;
        border: 0;
        border-radius: 0;
        background-color: #e0e0e0;
    }

        .btn-toggle .toggle-off.btn {
            padding-left: 24px;
        }

        .btn-toggle .toggle-off.btn-lg {
            padding-left: 31px;
        }

    .btn-toggle.btn-lg {
        min-width: 79px;
        min-height: 45px;
    }

.toggle-handle.btn-lg {
    width: 40px;
}

.btn-toggle.btn-sm {
    min-width: 50px;
    min-height: 30px;
}

.toggle-on.btn-sm {
    padding-right: 20px;
}

.toggle-off.btn-sm {
    padding-left: 20px;
}

.btn-toggle.btn-xs {
    min-width: 35px;
    min-height: 22px;
}

.toggle-on.btn-xs {
    padding-right: 12px;
}

.toggle-off.btn-xs {
    padding-left: 12px;
}
